﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Net.NetworkInformation;

namespace ControlExplorer.Controls.Maps
{
    public static class MapsHelper
    {
        public static void CheckConnection() 
        {
            if (!DeviceNetworkInformation.IsNetworkAvailable)
                MessageBox.Show("There is not network available. Please enable it in order to see this sample.");

            else if (!DeviceNetworkInformation.IsWiFiEnabled)
                MessageBox.Show("It's recommended enable WiFi to use this sample.");
        }
    }
}
